Optimal. Leaf size=237 \[ -\frac{(b B-A c) \log \left (-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \log \left (\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{(b B-A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}+1\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{2 A}{3 b x^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.188393, antiderivative size = 237, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.346, Rules used = {1584, 453, 329, 211, 1165, 628, 1162, 617, 204} \[ -\frac{(b B-A c) \log \left (-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \log \left (\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{(b B-A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}+1\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{2 A}{3 b x^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1584
Rule 453
Rule 329
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int \frac{A+B x^2}{\sqrt{x} \left (b x^2+c x^4\right )} \, dx &=\int \frac{A+B x^2}{x^{5/2} \left (b+c x^2\right )} \, dx\\ &=-\frac{2 A}{3 b x^{3/2}}-\frac{\left (2 \left (-\frac{3 b B}{2}+\frac{3 A c}{2}\right )\right ) \int \frac{1}{\sqrt{x} \left (b+c x^2\right )} \, dx}{3 b}\\ &=-\frac{2 A}{3 b x^{3/2}}-\frac{\left (4 \left (-\frac{3 b B}{2}+\frac{3 A c}{2}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{b+c x^4} \, dx,x,\sqrt{x}\right )}{3 b}\\ &=-\frac{2 A}{3 b x^{3/2}}+\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{\sqrt{b}-\sqrt{c} x^2}{b+c x^4} \, dx,x,\sqrt{x}\right )}{b^{3/2}}+\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{\sqrt{b}+\sqrt{c} x^2}{b+c x^4} \, dx,x,\sqrt{x}\right )}{b^{3/2}}\\ &=-\frac{2 A}{3 b x^{3/2}}+\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{b}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 b^{3/2} \sqrt{c}}+\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{b}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 b^{3/2} \sqrt{c}}-\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{b}}{\sqrt [4]{c}}+2 x}{-\frac{\sqrt{b}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{b}}{\sqrt [4]{c}}-2 x}{-\frac{\sqrt{b}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}\\ &=-\frac{2 A}{3 b x^{3/2}}-\frac{(b B-A c) \log \left (\sqrt{b}-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \log \left (\sqrt{b}+\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{(b B-A c) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}\\ &=-\frac{2 A}{3 b x^{3/2}}-\frac{(b B-A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{\sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{(b B-A c) \log \left (\sqrt{b}-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}+\frac{(b B-A c) \log \left (\sqrt{b}+\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}\\ \end{align*}
Mathematica [A] time = 0.135793, size = 168, normalized size = 0.71 \[ -\frac{(b B-A c) \left (\log \left (-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )-\log \left (\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )+2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )-2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}+1\right )\right )}{2 \sqrt{2} b^{7/4} \sqrt [4]{c}}-\frac{2 A}{3 b x^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 280, normalized size = 1.2 \begin{align*} -{\frac{2\,A}{3\,b}{x}^{-{\frac{3}{2}}}}-{\frac{\sqrt{2}Ac}{2\,{b}^{2}}\sqrt [4]{{\frac{b}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+1 \right ) }-{\frac{\sqrt{2}Ac}{2\,{b}^{2}}\sqrt [4]{{\frac{b}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-1 \right ) }-{\frac{\sqrt{2}Ac}{4\,{b}^{2}}\sqrt [4]{{\frac{b}{c}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) \left ( x-\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) ^{-1}} \right ) }+{\frac{\sqrt{2}B}{2\,b}\sqrt [4]{{\frac{b}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+1 \right ) }+{\frac{\sqrt{2}B}{2\,b}\sqrt [4]{{\frac{b}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-1 \right ) }+{\frac{\sqrt{2}B}{4\,b}\sqrt [4]{{\frac{b}{c}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) \left ( x-\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) ^{-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.29509, size = 1347, normalized size = 5.68 \begin{align*} -\frac{12 \, b x^{2} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{1}{4}} \arctan \left (\frac{\sqrt{b^{4} \sqrt{-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}} +{\left (B^{2} b^{2} - 2 \, A B b c + A^{2} c^{2}\right )} x} b^{5} c \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{3}{4}} +{\left (B b^{6} c - A b^{5} c^{2}\right )} \sqrt{x} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{3}{4}}}{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}\right ) + 3 \, b x^{2} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{1}{4}} \log \left (b^{2} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{1}{4}} -{\left (B b - A c\right )} \sqrt{x}\right ) - 3 \, b x^{2} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{1}{4}} \log \left (-b^{2} \left (-\frac{B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b^{7} c}\right )^{\frac{1}{4}} -{\left (B b - A c\right )} \sqrt{x}\right ) + 4 \, A \sqrt{x}}{6 \, b x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 160.822, size = 374, normalized size = 1.58 \begin{align*} \begin{cases} \tilde{\infty } \left (- \frac{2 A}{7 x^{\frac{7}{2}}} - \frac{2 B}{3 x^{\frac{3}{2}}}\right ) & \text{for}\: b = 0 \wedge c = 0 \\\frac{- \frac{2 A}{7 x^{\frac{7}{2}}} - \frac{2 B}{3 x^{\frac{3}{2}}}}{c} & \text{for}\: b = 0 \\\frac{- \frac{2 A}{3 x^{\frac{3}{2}}} + 2 B \sqrt{x}}{b} & \text{for}\: c = 0 \\- \frac{2 A}{3 b x^{\frac{3}{2}}} + \frac{\sqrt [4]{-1} A \log{\left (- \sqrt [4]{-1} \sqrt [4]{b} \sqrt [4]{\frac{1}{c}} + \sqrt{x} \right )}}{2 b^{\frac{7}{4}} c \left (\frac{1}{c}\right )^{\frac{7}{4}}} - \frac{\sqrt [4]{-1} A \log{\left (\sqrt [4]{-1} \sqrt [4]{b} \sqrt [4]{\frac{1}{c}} + \sqrt{x} \right )}}{2 b^{\frac{7}{4}} c \left (\frac{1}{c}\right )^{\frac{7}{4}}} + \frac{\sqrt [4]{-1} A \operatorname{atan}{\left (\frac{\left (-1\right )^{\frac{3}{4}} \sqrt{x}}{\sqrt [4]{b} \sqrt [4]{\frac{1}{c}}} \right )}}{b^{\frac{7}{4}} c \left (\frac{1}{c}\right )^{\frac{7}{4}}} - \frac{\sqrt [4]{-1} B \log{\left (- \sqrt [4]{-1} \sqrt [4]{b} \sqrt [4]{\frac{1}{c}} + \sqrt{x} \right )}}{2 b^{\frac{3}{4}} c^{2} \left (\frac{1}{c}\right )^{\frac{7}{4}}} + \frac{\sqrt [4]{-1} B \log{\left (\sqrt [4]{-1} \sqrt [4]{b} \sqrt [4]{\frac{1}{c}} + \sqrt{x} \right )}}{2 b^{\frac{3}{4}} c^{2} \left (\frac{1}{c}\right )^{\frac{7}{4}}} - \frac{\sqrt [4]{-1} B \operatorname{atan}{\left (\frac{\left (-1\right )^{\frac{3}{4}} \sqrt{x}}{\sqrt [4]{b} \sqrt [4]{\frac{1}{c}}} \right )}}{b^{\frac{3}{4}} c^{2} \left (\frac{1}{c}\right )^{\frac{7}{4}}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18459, size = 339, normalized size = 1.43 \begin{align*} \frac{\sqrt{2}{\left (\left (b c^{3}\right )^{\frac{1}{4}} B b - \left (b c^{3}\right )^{\frac{1}{4}} A c\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{b}{c}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{b}{c}\right )^{\frac{1}{4}}}\right )}{2 \, b^{2} c} + \frac{\sqrt{2}{\left (\left (b c^{3}\right )^{\frac{1}{4}} B b - \left (b c^{3}\right )^{\frac{1}{4}} A c\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{b}{c}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{b}{c}\right )^{\frac{1}{4}}}\right )}{2 \, b^{2} c} + \frac{\sqrt{2}{\left (\left (b c^{3}\right )^{\frac{1}{4}} B b - \left (b c^{3}\right )^{\frac{1}{4}} A c\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{b}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{b}{c}}\right )}{4 \, b^{2} c} - \frac{\sqrt{2}{\left (\left (b c^{3}\right )^{\frac{1}{4}} B b - \left (b c^{3}\right )^{\frac{1}{4}} A c\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{b}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{b}{c}}\right )}{4 \, b^{2} c} - \frac{2 \, A}{3 \, b x^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]